//
//	RootClass.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation

struct RootClass : Codable {

	let data : LocalData?
	let errorCode : Int?
	let now : String?
	let ok : Bool?
	let text : String?
	let version : String?


	enum CodingKeys: String, CodingKey {
		case data
		case errorCode = "errorCode"
		case now = "now"
		case ok = "ok"
		case text = "text"
		case version = "version"
	}
	init(from decoder: Decoder) throws {
		let values = try decoder.container(keyedBy: CodingKeys.self)
		data = try LocalData(from: decoder)
		errorCode = try values.decodeIfPresent(Int.self, forKey: .errorCode)
		now = try values.decodeIfPresent(String.self, forKey: .now)
		ok = try values.decodeIfPresent(Bool.self, forKey: .ok)
		text = try values.decodeIfPresent(String.self, forKey: .text)
		version = try values.decodeIfPresent(String.self, forKey: .version)
	}


}
